package tpf.designer.pattern.course6.behavior_pattern1.template_18.InterestRate;

import org.apache.log4j.Logger;
import org.junit.Test;

public class Client {
    public static final Logger LOGGER = Logger.getLogger(Client.class);
    private static Account account = null;

    @Test
    public void testTemplate(){
        account = new MoneyMarketAccount();
        LOGGER.info(account.calculateInterestRate());

        account = new CDAccount();
        LOGGER.info(account.calculateInterestRate());

    }
}
